UpdateSubresource<T>(T,Resource,Int32,Int32,Int32,Nullable<ResourceRegion>) Method
In This Topic
Copies data from the CPU to to a non-mappable subresource region.
Syntax
'Declaration
Public Overloads Sub UpdateSubresource(Of As {New, Struct})( _
ByRef As , _
ByVal As Resource, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Nullable(Of ResourceRegion) _
)
public void UpdateSubresource<>(
ref ,
Resource ,
System.int ,
System.int ,
System.int ,
System.Nullable<ResourceRegion>
)
where T: new(), struct
Parameters
- data
- A reference to the data to upload.
- resource
- The destination resource.
- subresource
- The destination subresource.
- rowPitch
- The row pitch.
- depthPitch
- The depth pitch.
- region
- The region
Type Parameters
- T
- Type of the data to upload
See Also